v3.6

Added error-control
Added better command line support
Improved the return value