Fixed configuration using forge configuration file handling

Debug level variable not done yet. Must be added later.
This is much cleaner than the original code. Why not use forge configuration file handling when it is offered?