Fixed some bugs. Added signal mode, but it does not work well...
Modified .gitignore