Made toNor/toNand more readable and add decompose