Removed first parameter from Readablecodes::generateCode().

Also more documentation and stuff.