added cmd line interface
tweaks