more testing and update document's positions in ui thread
exception handling
writing documentation and minor refactoring