Addressed numerous logical errors in both order and position execution
Cleaned up various compile-time errors, maybe an IDE other than emacs would be more productive...