Setting up directories and an entry point