Bugfixes.
Try to save a corefile please?
Clean up build
Clean up bugs, add in debugging output and variable-type min function. Not sure
if this is a good idea though.