Added methods to add and remove elements. Fixed menu to work properly.Added comments.