Pretty version of the working code.
Moved fopen to a more appropriate place.
Modified the list of files to be ignored.
Added version information.