fixed bugs

* removed "String" definition
* made constructors public