On/off storage systems with state dependent input, output and switching rates