added setupappcall
added documentation for setupcall