Remove some silly code
Add path sub system
Add init and quit function into main.c