fixes misspelling
smaller changes
add tests