Make --config command line option usable

I am not sure if this is how it should be implemented but here it is.
let me know if I should use custom string functions or anything else!