more doc writing, added standalone browser compatibility