Initial commit

Initial commit of the 0.5.1 code from minigal.dk