camel case naming meminfo vars and adding tests
removing unused var and silencing clang warnings