Creating a library for MPU-6050 using KRODAL's code

Hi everyone! Due to lack of programming knowledge/experience I would be very grateful if you could help me to create a library from Krodal's code for the MPU-6050 IMU: Arduino Playground - MPU-6050 . By creating a library, it will be a lot easier to code and also create functions in void setup () part of the code. By including the library the following variables required (stream of IMU data through I2C):

accel_t_gyro.value.n_accel
accel_t_gyro.value.n_gyro
where n=x,y,z

and MPU6050_read function, to change register data.

Having read the following article on libraries: http://arduino.cc/en/Hacking/LibraryTutorial , I attempted to create one. I got stuck with the variables which I should include in the header and how the actual *.cpp file should look like. Here is my poor attempt:

#ifndef mpu6050_h
#define mpu6050_h
#include <Wire.h>
#define MPU6050_AUX_VDDIO 0x01 // R/W
#define MPU6050_SMPLRT_DIV 0x19 // R/W
.
all the defines as in the code: Arduino Playground - MPU-6050
.
.
#define MPU6050_LP_WAKE_5HZ MPU6050_LP_WAKE_CTRL_2
#define MPU6050_LP_WAKE_10HZ MPU6050_LP_WAKE_CTRL_3
#define MPU6050_I2C_ADDRESS 0x68

class mpu6050
{
public:
int MPU6050_read(int start, uint8_t *buffer, int size);
int MPU6050_write(int start, const uint8_t *pData, int size);
int MPU6050_write_reg(int reg, uint8_t data);

}

#endif

    int MPU6050_read(int start, uint8_t *buffer, int size);
    int MPU6050_write(int start, const uint8_t *pData, int size);
    int MPU6050_write_reg(int reg, uint8_t data);

Do you often use Serial.HardwareSerial_available() and Serial.HardwareSerial_read()? I don't, either.

Get rid of the class name from the method name.