Indented with GNU indent

With options: -lp -br -ce -bap -brf -nut -npcs -npsl -i4 -l80
Add version.h to dist
Removed unused variables
Fix conditional

Replaced binary operator (&) with boolean operator (&&).