reorganize directory structure.
fix application references & broken include paths.
helper methods.