added cases in the constructor
added readme