made code compilable and cleaned it up a little bit
Merge branch 'master' of https://github.com/doggygit/dwdm