Implement beginning of write_logs(c, d)
I am apparently incapable of doing shit in the right order D:
Merge branch 'master' of https://github.com/cefyr/kalpana-nano
Implement more of write_logs()