Fixed bugs in numerical conversion (json)
Kernel sum was serializing base object in JSON
Makes objects implement the AutoCloseable interface for automatic memory cleaning in java