Fixed bugs, updated tests.
Added README section about formatting and new tests