Command line options
updated readme; snippet for example main func