Some javadocs, fix type coercion when checking for enabled