commented some code. adjusted plotting parameters