Squished bugs; now supports wifi configuration; refactored