Removed redundant code.
Added readme and removed mored redundant code.