Updated print visitor to accept an output stream
Added support for var declarations and IF tree