Implemented batch Raven writing

Literally 100 times faster
Old version took 15 minutes (900 seconds)
New Version takes 9 seconds