updated to use DataFrame objects instead of tables, see #64; sooo much code reduction, i love pandas