more refactoring, timer working, more source code latex references