spelling
add some unit tests and debug clipping phase 1 a little