The source code is availlable in my gihub.
WARNING: USB does not seem to be hotplugable. Plug before boot and don't remove till reboot. I managed to get a complete lockup (had to remove battery to get out) by not obeying this.
USB Disk must have exactly one vfat partition.