Added code optimization, compiler scripts