Issue #461: Add a script service for accessing patient data
More Javadoc, fixed some checkstyle errors