Fixing typos 

line 90 : removed ' ] '
line 92 : removed ' %in% ' 
line 92 : added ' ] '
line 182 : fixed formatting of line
 
reformatted all comments following line 92

Still unable to plot simulation (not sure if simulation is even running correctly), but no error messages.