Refactors in LG code + fixed syme typos