Fixed Lint check errors and most of Lint warnings