- Fixed ifs and elseifs
- Removed trailing whitespace;  - Ensured space between for/foreach and (
- Conformed to the Blaze coding standards version 1;
- Updated the shared lib to be Blaze1 compliant;