Added better documentation and made second submit
fixed included filename index bug