changed resolution logic, refactoring
changed indent to 2 spaces.
fallback logic
different conf keys for input / output
add class to metadata