Finish second exercise

This commit finishes the second exercises and makes the code ready to
be uploaded and handed in. A README file has been written with
instructions on how to deal with the code. The scripts have been
finalized. New samples have been written.
Build file creates gen if need be

Unfortunately git does not check in empty folders so we added a line
to the build script that creates the directory gen if it does not yet
exist.