Energy points are deleted from the vector using the erase function. closes #1