Added -v flag. Fixed bug with inputs. Ready to master