Fixed gendarme warnings (hight+)
Added EntryPoint to NativeMethods.