More functions, and fixes.

Re-arranges a few codes, and added more ram.