Updates to main.c

Changed it to main instead of mian (lol),
added code to print_line,
fixed comments on some parts