Fixed code warnings and other tidying.
Add some ignores
More attempts to improve FTP reliability.