Better error handling for the profile command
Merge pull request #7 from rgs/master

Better error handling for the profile command