Fixed Save As main file bug, and attempted to fix bluetooth problems