Module is now optional. Updated automain comments.
autofile now accepts an optional error-handling function.
Updated and fixed autofile error handling. Now more pythonic.
Comment and style changes to automain