Moving yaml an option parsing to the lib folder