added comments and moved styles to seperate file