Added function for replacing rare words
Added rest of assignment files