Implemented record(). Updated readme and test