removed hard coding from if tests
added comments to binary files