documented hw5 before starting `erase'

also fixed a type where we forget a `*' to declare a pointer