Added code for Write function, cleaned up other stuff.
Merge branch 'dacc' of https://github.com/theolind/mahm3lib into dacc

Conflicts:
	src/dacc.c
	src/dacc.h