added scratchpad and fixed a few errors
stupid swap files