Further documentation, slight tidy up
updating error msg
documenting
updating build/main.js - pre-push