Fixed typos and invalid call to vertex.get_resources_used_by_atoms( ) . it didnt have the vertex included in the call