started adding api reference documentation

Ignore-this: c114b1d270580c7db18f39b6c7117838

darcs-hash:20141123214639-c21fe-9aa49d6225f21528d6353410ad4b70a6473820cd