A Quaternion based Mathematical Model and Control of a Hexacopter