Changing to a graph representation - should simplify working with machines
Finished switching to graph representation; changed names in Attachment struct to reflect the lack of parent-child relationship
Added method to get attachment so we can modify it