Added copyright information.
Added missing docblocks.
Updated README to show new API usage.