Addd .swp files
Added casts to reduce number of warnings.