Code cleanup, clarified the behaviour of components and moved the counter and completed button into separate components. Replace libraries with minified version where applicable.