Added a few template functions and updated usage and readme.