updated caps and ipa scripts with comments and missing shebang