Remove unused.
Fix problems with closing resource.
Changes to output format for observations (WIP)