Added some additional comments and removed an unused import.