updated code. removed unwanted function.
Updated readme and test code.