updating readme for compilers
reducing duplicate code using a switch/case trick