bugfixes, removed debug code, minor improvements
moved print_vmstat_item to inside main function
moved a little used function inline