tweaks

Cleaned up code and adding some default SWF settings in the AS.