breaking up files; fixing 'undefined' bug; removing non-word words