Reorganized sources, daemon and interface sources are now separated.

Also fixed issue #3.