added NUI as a reference to the project
refactored some other things