Minor fixes: catching an exception, fixing documentation, permissions.