commit initial epbs code

the early epbs code that can work but has some bugs. further version should arrange the source code in different file folds.