major updates to S, bug fixes, new plots