Remove old files, fix version constant.
Update HISTORY file.
Add function declarations, delete trailing whitespace.
Fix dependencies.