cleanup DIP project code
use const qualifier where appropriate
rename some symbols to be more readable