adding documentation and handler tests