added some functions and cleaned some things up
updated examples
updated the readme