added basic functions

Fixes #19