fix return value of main and add makefile