Added basic accelerometer code for iPad 

#361