Modified resource model and cleaned up .pyc files