Large Rewrite

See change log for more info
Change word param back from integer to type text
Merge pull request #4 from wilsonge/master

Major Rewrite