Changed style: declaration first, documentation next
Added comments and some types
Ignore .DS_Store
Improved manual page

Added 'extract' command, some minor improvements otherwise.
Small coding style improvements