Added constructor with parameters method and renamed some public methods