Update ignore file.
Update scripts

Add #if directive for compiling.
Refactoring.