added unit test; rewrote string parsing; changed last arg to be 15 mins

Uptime is 1, 5, and 15 minute averages. Wrote a unit test for you. Feel free to reject if you wish. (Thanks for your presentation tonight at pdxdevops.)