Fleshed out some commands a bit more and added a very basic top command as well as the relevant API functions