Removed WaitForData from InputStream.
Added separate cpp and header for converting objects to string and back.