Bugfix

Fixed bug where executing a non-existant command would throw a
nullpointer exception.
Code cleaning
Upgraded code to remove deprecated apache code
Added useragent