fixed minor issues of inconsitency in coding style and small syntax
errors - memoryService is now available from the Api explorer - non of
the methods work yet