An Arduino library for controlling small trains with a motor shield