Light update network syncs properly now, and some code style cleanup