added some analysis stuff and cleaned ino