Added an each test, removed some old require code.
Added copyright.