Added summary function
Fix up numpy handling