several fixes, added software divisions library