add doc.go file
for the sake of simplicity, remove flag package and replace it with Settings structure
improve documentation