Added an explanation for the implementation of detectOS()