add globals, add compact fxn, added missing pkg imports
compiled readme