Added comments.
Removed dead / unimplemented code.