Added a second constructor

this one needs int types and will directely simplify and store them.
Also fixed an error in the first constructor