Fixes variable scope issues
Adds some installation procedure for web application