Update process.c

Writem clean_tasklist func, bug fixes
and init has been filled with some testing code