cleaned out some old crap and added prefferences