added
-slot and timestamp calculation
-some io:format