Revert source files from being executable

Also minor syntax fixes.

Signed-off-by: mkhropov <mkhropov@gmail.com>