removed dead method
slowly fixing newly introduced bugs
fixed minor bug with respect to constructor type checking