Added comments, renamed classes, added check to randomizer. Added license.