Added swag.el
Cleaned up formatting and fixed the type declaration on main for swag.c