code: func SetBaseDirectory(dir string) error {
  	if len(dir) == 0 {
  		usr, err := user.Current()
  		if err != nil {
  			fmt.Println(err)
  		}
  		dir = usr.HomeDir
  	}
  	dir, err := filepath.Abs(dir)
  	if err != nil {
  		fmt.Println("Could not calculate absolute path", err)
  		return err
  	}
  	base = dir
  
  	return nil
  }
docs: /*
  SetBaseDirectory sets the base directory used in the other helper methods
  */