Fixed bugs and added wrapper to convert epoch time to readable string