Made easy_setopt unsafe, replaced tabs with spaces, changed opt codes to an enum for safety