changed font storage method, added comments