Fixed improper Thin invocation, also small corrections to variables
Added some tools