minor bugfixing; finished first plotting script