add loggin module
change some
basic feature complete