Shortens the lines in the generator
Adds lib file and moves random_assignment into it