Updated print visitor to accept an output stream
Added support for var declarations and IF tree
Merge branch 'master' into martyn82