Fixed typo in battery.c (should fix #3). Added conditions for interface up and down.
Added commandline options (#5)
Merge pull request #7 from JuhaniImberg/next

fixes #3, #4 and #5