added some tests, made some things work, added paragraph boundaries