Function for calculating the force.
Added simple glfw example and make file.