Update to change void main() to int main(), and add exit status'