Cleanup
Added smartcase option