chmod: fix source files permissions
cleanup: trim trailing spaces