Updating error handling
Added version command