add regprint function and updated some files