ver 0.4.2, umd-style module with dependencies, code refactoring, edits