Nodes and object fixing

Fixed the positional and rotational connection between objects when
attached.
Added comments
Added a few lua functions