Reformated the whole code tomake it more readable, i'm sick of those braces.