consistent formatting
removed unused function
new test
compiled new version