Splitted into files and added Makefile.
Minor proof simplification.