Updated description.
Added battery.c to the project.
Added some functions and made a dirty working version.
Added output to stderr if operation fails.
Further cleaned code and added coloured output.