Changes variable names, adds possibility to delete first element

Deletion of first element clears values instead if deleting the
container