I'm using a gecko g251x
http://www.geckodrive.com/geckodrive-step-motor-drives/g251x.html
The motor turns and behaves as it should using example code as well as some simple code that I have added. I just don't have a strong enough grasp of how to code something like this. Thanks.