clean up models, create useful library functions, make the front end workable, finish basic backend stuff