Fixed null ptr and graph issues

there was an extra sc.next() called in the smoothing method. Made the
scatter plots have a set range. Other minor changes