Added UMD. Refactoring + updated docs.