Remove invalid const specifier on return type.
Remove unused variables.
Remove unused functions.
Fix uninitialized variable.
Fix typos.
Remove whitespace at EOL.
Merge pull request #11 into release-1.2

Conflicts:
	src/dither.h