Version 1.2

Enable callback functionality.
Enable direction functionality.
Some coding style fixes