clean up makefile params
fix how patching is supposed to work
fix small bug in Image
add some doc strings to Image