Clean the code and test compatibility with magento ver. 1.8.x.x