added setup.py
Refactored datetime-stuff