added some compiler options
removed the malloc2Dchar function
minor changes
Solved some issues with the memory allocation