added some functions
Merge pull request #125 from wgerlach/master

added some functions