Added returns, fixed add_filepool_control (v2)

Added returns and improved add_filepool_control, which should now work either with or without a custom function.