Adding getter speed and getter pin in motor library