global variables changed to constants and refactored.
restricted system file access. fixed bugs in global variables refactoring.
Merge branch 'master' of github.com:dasrajdeep/stream_arch