Improved documentation
Improved testing, added flipHelpers.coffee