added error checking, munkres, simple server printing