Make path argument optional for /timeline
Fix debug msg
Remove unnecessary function