added makefile with build and clean targets
tested and improved pile_onto(). Still one case not covered.