Added divission, fixed some problems