fixed bug in min, max; started implementing to use base stats
Merge branch 'interface_extension' into piggyback_master