Updated encodes.h to include new functions

Encoders.h is up to date with encoders.c. Also did some general
debugging in ruler.c. The program compiles fine as of now.