Added Escaping of pipes

Use "\|" If you want to give it a literal pipe as an argument,
for example print-
Moved main loop to a function + small function ( rainwords )
Added some common functions
Added API and getting ready for something good...