adds documentation and sets default method to post sample