Added Andrew's mod functionality

 Changes to be committed:
	modified:   api/andrew/modular.cpp
	modified:   api/andrew/modular.h
	modified:   api/tim/input.cpp
	modified:   api/tim/input.h