Code review

Various changes to samples and libraries. Main new feature is optimistic setting of PROCESSING_ROOT, most likely to work bes on MacOSX.