Support for limiting sprite size from options

    Switched to Mocha
    Fixed missing documentation
document the regexp format (number of groups etc)