Added auth system. Some style changes.