deleted print queue function
fixed #3 and fixed #2 and added implementation for #1