Fixed a bug (-q was not working) and updated documentation.