Added OOP to the code. Implimented a class of rt_layers and
also refined the J, Q1, Q2 and other plots.