Added static analysis on gcc before make just to check for things to speed things up, minor code optimizations as a result