Tidied code, modified layouts and changed some styles.