Add support for TCLAP and added more error handling