removed scratch files and cleaned up some plots code