Cleaned up legacy code. Added readme.
Updated readme