Added ipynb file support — I know current codes really sucks. Fix these later.