add type checking to lua light user data
remove debug stuff from main.cpp
add history to console