fix more edgecases. Add better documentation
0.1.4