Accelerometer and gyro kalman filter

Hello, I am trying to get the raw readings from an accelerometer and raw readings from a gyro and combine them so they reduce the noise from the accelerometer using a kalman filter. This in turn will drive a servo much more accurately then just one accelerometer. I've been searching around the internet for the past week with no avail, It's just hard to understand. Can someone give me a barebones explanation / example code for this?

My accelerometer:

My gyro:

Really any help is much appreciated, thank you in advance.

I would start off by just building a recorder. Then you can work offline.

One book I've found on the subject is this.

Title: Aircraft Control and Simulation, 2e
Author: Stevens

I'm using 'Visual Kalman Filter'. It's nice, but I'm not sure it's helpful for you.
Good luck!