Improve karma script. Add comments and explain command