Adding error callback for require function, cleaning up, code quality, documentation, updating examples, other misc.