Added missed files; add native methods
add some native functions