added handy.c for a collection of functions that are 'handy' to have around