update framerate code, allow to change fps
cleanup mdns init code