fixing virtualenv support, add more comments