Changed codeblock to :math:
Added tests for remove/insert/add - squished a lot of bugs and speeded up distance_add