Changed package structure started adding tests.

Also added an interface for the BaseNode class.