Added create and create_subtask functions.

Hi, Mike,
I've submitted the patch. I've also run perltidy on it.

Could you please review and release it?

Thanks!

Zhuang (John) Li