Changed function name and proper URI creation
Fixed spacing for find_application calls
Raise errors based on exit code
Added options to find_application