Implemented simple ui for querying. Improved validation and exception handling. Implemented rest of features.