Make D version faster by not using exception. Reorganize directories.