separated some classes from the mainfile; added toplevel src; added makefiles