First commit of previously written library code and a quick shadow test.