updated script to accept commit message