Fixed errors: typos, missing initializations. Changes in some constructors