Fixed boolean assignment and wrtie

Boolean assignment is working. Boolean write and writeline is working.