loops until quit and runs namp only once

Will run until exit equals 2
Should move some nonessetials out of loop for efficancy