New parameters, added flip feature, updated readme.