Fixed some bugs

I used stdout as a name for a function which caused problems, so this
got changed. Also, sk_tableau::eoc() was having out-of-range runtime
issues, so I changed the order of some conditionals.