added capacity detection to docking_station.rb