structure for localoptimizations class added
merged debug print differences and test.c changes