removed functions, structs, pointers, arrays, etc

even addressed the unused vars and commented code ends with continue
line char syntax warnings