Added tests for flip function
Updated readme