MMA7455 code problems

Can you clarify what files are where - you mention MMA7455.cpp, but this has a setup() and loop() function - those belong only in the sketch itself (.ino or .pde file)