Merge pull request #14 from ArchieT/medale

Although it doesn't work perfectly yet, I'll merge it.  I still gives negative values sometimes, but it usually shows truth.
Merge pull request #15 from ArchieT/master

Merge pull request #14 from ArchieT/medale