Merge pull request #27 from chrismatheson/master

adding endpoint option to init function