Changed definitions in node, some formating. Added functions file with higher level API to parsing different objects.