added print queue, not complete, also, wrote some comments