added methods for getting edges and vertices, added comments