added register feature and updated readme