Fixed resources not being closed properly issue.
Changed Column to a scala class.
Made everything compile.