Added real IO class and str function to fredkin
Added documentation