Reformatted code and fixed pointers.
pushed code.