Added peripheral library, small tweak to gui lib.