Fix setting config
Refactor for dependency injection
Use a slice instead of map for meminfo.

Also updates both getSysinfo and getMeminfo to handle reprs.