small bug fixes, constructor & toString functional