Elimiante build warnings and remove magic numbers from key logger