rebuild the architecture and fix seek bug

1. added help menu
2. added input function choices
3. fixed bug for seek system call