remove proto section in headers
add init function
add enum, fix