Doc updates.
Added unit tests for the "define" function.