Added exception handling and improved availability checking logic
Merge pull request #2 from vorfin/master

Added exception handling and argparse support, improved checking availability logic