set up directories and added const

set up directories and added const