A few changes to main

-tried to fix the input problem with fgets