Added sig and delta file headers, version checking and some comments.