(bug-fix:minor) Rao2013 app manager: local variable hided a global one. Also fixed a problem in the header of output file