Updated Consts. Added debug option, added more features to controller.
Added timeout on connect.