Adding support for nested references
Updated logging levels #19