Reorganized code into src and demo directories.