Removed unused enum.
Added commenting.