Added out of memory message and cleaned up unused files.