grad.*, main.c: Remove ivalue de readInput e organiza main

Signed-off-by: Aryane Ast dos Santos <aryaneast@gmail.com>