Updated documentation

Also, cleaned up checking for `compile_select` function