move source codes to Lib.