adding stdperihperal lib. may need some cleaning here... A bit bloated for my needs