Add assertions, files and I/O
Merge pull request #64 from anpar/patch-1

Add assertions, files and I/O