If you would like to have a memory and battery meter at the top of your screen but don’t need all the extras that come in packages that offer such functionality (like Spb Pocket Plus), check out Powerstatus 1.0. Not only does it only takes up 3.5KB but it is also free!
If you look in the “Update Descriptions” section, the author has also posted the source code!