Fixed missing documentation
Fixed from bitwise to logical operator
The && is used instead of &
Fixed white spaces
Comment out unused code
Part of the code that is no longer in use is commented out.