Battery saving changes, also finally got a sane IDE (go go jetbrains CLion!) so many small syntax changes.