Structuring class.c - pragma marks, related functions together, fixing stuff.