EPIC COMMIT: app_remove() + refactoring + bugfixes + stuffs