Added password and library caching, fixed a bug in parsing

Signed-off-by: Difegue <sugoi@cock.li>