Some style updates; also rescuing only RuntimeErrors, as dictated by good practice.
Better error handling. Update version to 1.1.2