added -v (version) flag