added some function stubs to calc
finished most calc functions