more convenient usage outside the main directory and some bibtex fixes