Fixed all constructors and found and repaired several bugs