added includeguard to header & formatted code using eclipse