Commented Word class, Code cleanup, OOPed the code a bit