Added:
 1). Separate funcion for parsing arguments
 2). Template for creating process and thread