Added DLC feature and Improved code.

Fixed compiler warnings that appear with -Wextra
Added -Wall -Wextra