Added tests, fixed a bug with wrapping that caused anchors to use the wrong position
Removed unnecessary files