Added RAM checker, cleaned up a little