Add info on build dependencies.
Change pid and dat file locations from /var to /run.
Fix writing to sd card every second.
Merge pull request #2 from flaterichd/master

Fix writing to sd card every second