First level development. Added base classes with most functions. Needs review before examples are done.