added constructor typecheck and also added a file with features