Fix syntax error. #183
Add more logging. #183
Add missing methods and variables. #183