removed grievous errors in contstructors of several classes