clean up headers and notes and library stuff