implement client for ce_constructor and fix bugs in c code, update master app to allow for automatic submission of new batch job using pexpect