Add RabbitMQ buffer size command line argument

Add -q option to extract arguments and removed some unused variables
and libraries.