Fix pool method validation, some coding standards tweaks