Added C version, reorganized directory structure