added git-hooks
changed script header
added runtime concurrency protection