Cleanup code and added test code
Updated readme.
Added config generator