Added logging system to code. Improved showDisplacement wrapper