updated vapi, registered filetransfer callbacks
some work on preferences window, got rid of some warnings