added and tested getAttributes method. Next step is traversing the tree, then writing to file, then done