command line interface
fixing some issues and measuring memory more often