Bug fixes. Updated readme, more helpful error messages.