Fixed integer division bug, undef macro after use, formatting.