added general ref functions, added a navigate function for nested structures added a simple syntax for creating nested structures