Made config map static
Fixed small syntax errors
Added config and session classes to main