fixed the bad parsing of proc-net-dev
did some memory analysis on code, much cleaner now, and significantly cut back on memory leaks
initialised up and down values