Added unit test, fixed docs, copyright header cleanup.