Added updating possibility and, commented code and also added a select element