got rid of a few TODOs, fixed the clear button to accept a View object as parameter, and added some missing comments.