fix append, ctx switch in write
consistent use of quotes
prepare cron
prepare logger class
implement new logger
error handling
dont create file on append
small fixes