Day creation functions added and updated demo.js

Function processDay and related functions created. Returns Day-object with
lessons. Usage shown in demo.js