refactor obj refs
fixing templates
derped. added docs