put more parameter reading into main.d
added new files