onload fix

remove automatic object creation
rudimentary makefile