clean up ruby remains.
add scanner class, work in progress.