Converted tabs to spaces, started working on unfreed memory blocks issue.