ENH: reimplemented padding in recon() and some small enhancements