Some changes
Optimization: GPIO functions changed to direct IO access in encoder module