Adding tests for flip, adding memoize, cleanup of readme.