Added stylesheet and refined code