Fixed words below algo, fixed bugs