change to heading
added api documentation. fixes #200