form validation, added files for offline, cleanup