fixed and organized the compiler , added comments for methods