Updated native methods attributes from 2 to 3

Also, updated some more code, commented out code,
and refactored code.