Add comments and bugfixes
Add frontend barebone