fix #5: add pylintrc and clean up some warnings/errors