added configuration and simple main with scanner