fixed bug in the varible data type selection, made comments capture more robust, updated docs