add pretty printing in stop, added more maplib functionality