Edited makefile, changed all output to int output and cast, exchanged position of PID and PPID