added includes from Pfeiffer's bbfs.c, reorganized includes, remove the logfile from the struct (will need to add in passphrase later)
copied some functionality from bbfs, now mirroring a passed rootdir/ works